import request from '@/utils/request'
/**
 * 获取
 * @param query
 */
export function getUser(query) {
  return request({
    method: 'GET',
    url: '/api/user',
    params: query
  })
}

/**
 * 冻结or解冻
 * @param id
 */
export function freeze(id, data) {
  return request({
    method: 'PUT',
    url: '/api/user/' + id,
    data
  })
}

/**
 * 删除
 * @param id
 */
export function deletes(id) {
  return request({
    method: 'DELETE',
    url: '/api/user/' + id,
    params: {}
  })
}

/**
 * 删除
 * @param id
 */
export function add(id, data) {
  return request({
    method: 'PUT',
    url: '/api/user/experience/' + id,
    data
  })
}
